#include <iostream>
class Handle;
class Point;

class UPoint
{
    friend class Handle;
    Point p; // 存数据的类
    int u; // 保存引用计数
    UPoint():u(1){};
    UPoint(int x , int y):p(x, y),u(1){};
    UPoint(const Point & p0):p(p0), u(1){};
    ~UPoint(){ std::cout << "UPoint: " << this << " 被销毁了 \n" ;};
};
